
COMPILER="./closure-library/closure/bin/compiler.jar"
BUILDER=closure-library/closure/bin/build/closurebuilder.py \
	--output_mode=compiled \
	--compiler_jar=$(COMPILER) \
	--root=closure-library/ \
	--root=js/ \
	--compiler_flags="--compilation_level=ADVANCED_OPTIMIZATIONS"

CSS_DIR=closure-library/closure/goog/css
CSS=\
	$(CSS_DIR)/common.css \
	$(CSS_DIR)/button.css \
	$(CSS_DIR)/dialog.css \
	$(CSS_DIR)/linkbutton.css \
	$(CSS_DIR)/menu.css \
	$(CSS_DIR)/menuitem.css \
	$(CSS_DIR)/menuseparator.css \
	$(CSS_DIR)/tab.css \
	$(CSS_DIR)/tabbar.css \
	$(CSS_DIR)/toolbar.css \
	$(CSS_DIR)/colormenubutton.css \
	$(CSS_DIR)/palette.css \
	$(CSS_DIR)/colorpalette.css \
	$(CSS_DIR)/editor/bubble.css \
	$(CSS_DIR)/editor/dialog.css \
	$(CSS_DIR)/editor/linkdialog.css \
	$(CSS_DIR)/editortoolbar.css \


buildjs:
	$(BUILDER) --namespace="otq.initRoot" > static/root.js
	$(BUILDER) --namespace="otq.initUpgrade" > static/upgrade.js

buildcss:
	cat $(CSS) > static/closure.css
